#ifndef __DS81B20_H
#define __DS81B20_H

#include "main.h"

#define DS18B20_PORT GPIOC
#define DS18B20_DQ	 GPIO_PIN_4

extern unsigned char     ds18b20_init(void);
extern void     ds18b20_write_byte(unsigned char);
extern void ds18b20_start(void);
extern unsigned char  ds18b20_read_byte(void);
extern unsigned int ds18b20_read_temp(void);

#endif
